#include <iostream>

class Test
{
public:

    // static int c;
    // int a;
    Test()
    {
        count++;
        std::cout<<"构造函数"<<std::endl;

    }
    ~Test()
    {
        count--;
        std::cout<<"析构函数"<<std::endl;

    }
    static void func();


    static int count;
};
//静态成员变量初始化
//int Test::c = 10;
int Test::count = 0;

int main()
{
    //std::cout<<Test::c<<std::endl;

    // Test  *t1 = new Test();
    // Test  *t2 = new Test();
    // delete t1;
    // delete t2;

    // std::cout<<Test::count<<std::endl;

    Test::func();
    return 0;
}

void Test::func()
{
    std::cout<<"helloworld"<<std::endl;
}
